package com.mantru.iotpot.modbus;

import java.io.*;
import java.util.*;


public class ObjectBuffer
{
    public byte Type;                //数据包类型
    // public ClientSocketClass ClientSocketNode;   //客户端结点
    public int SequenceNo =  0;      //序列号
    public byte MsgType = 0;         //消息类型   1-请求, 2-应答， 3-通知
    public byte Command_Id = 0;      //命令字
    public String BodyString;        //消息体字符串
    public String FilePath;
    //  public TriggerClass TriggerNode; //触发器，当Type=BUFFER_TYPE_ADD_TRIGGER 时有效
    public byte[] BodyByte;          //消息体字节
    //public ClientSocketClass HttpSocketNode;

    public ObjectBuffer(byte aType)
    {
        Type = aType;
        //  ClientSocketNode = null;
        BodyString = "";
        FilePath = "";
        BodyByte = null;
    }

    public void Dispose()
    {
        // ClientSocketNode = null;
        // TriggerNode = null;
        BodyString = null;
        BodyByte = null;
        FilePath = null;
    }
}
